<?
        require_once('../inc/OrderItems.php');
        if(isset($_POST['sav']))
        {
            $post = $_POST;
			$tar = "Location: index.php";
            $newrow = Create($post);
            header($tar);
            die();				
       	}	
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>New List Item</title>
    <link rel="stylesheet" type="text/css" href="../inc/bootstrap.css">
    <style type="text/css" ">
        .error { color: red; }
    </style>
</head>

<body>
        <? include('../inc/header.php'); ?>
        <div class="container">
                        <? include('../inc/nav.php'); ?>
            <div id="contents">             
                <form class="form-horizontal" method="post" action="">
                    <div class=" control-group">
                        <label class="control-label" for="Orders_id">Orders_id:</label>
                        <div class="controls">
                            <input type="text" name="Orders_id" id="Orders_id" value="" />
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="Item_id">Item_id:</label>
                        <div class="controls">
                            <input type="text" name="Item_id" id="Item_id" value="" />
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="Quantity">Quantity:</label>
                        <div class="controls">
                            <input type="text" name="Quantity" id="Quantity" value="" />
                        </div>
                    </div>
					<div class="control-group">
                        <label class="control-label" for="ItemsPrice">Item Price:</label>
                        <div class="controls">
                            <input type="text" name="ItemsPrice" id="ItemsPrice" value="" />
                        </div>
				    <input class="btn btn-primary" type="submit" value="Save" name="sav" />
                </form>
           </div>
       </div>
</body>
</html>